import json
import os

from config import BASE_PATH


def read_json(filename):
    path = BASE_PATH + os.sep + 'data' + os.sep + filename
    with open(path, "r", encoding='utf-8') as f:
        data = json.load(f)

    return data

def read_json_paras(filename):
    path = BASE_PATH + os.sep + 'data' + os.sep + filename
    with open(path, "r", encoding='utf-8') as f:
        data = json.load(f)
    para_list = []
    for item in data.values():
        para_list.append(tuple(item.values()))
    return para_list



if __name__ == '__main__':
    # data = read_json('account_info.json')
    # print(data, type(data))
    # dic = read_json('account_info.json')
    # for i in dic:
    #     print(i)
    print(read_json_paras("baping_paras.json"))